filefilter: Cleanups and optimizations
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jul 2020 19:07:36 +0000 (15:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jul 2020 19:12:07 +0000 (15:12 -0400)
commit5a2f791bddd90f65a2d867ab1df061c3d786b6d2
treea2a003dcbcb07830c30b9daaaed247bddef81f09
parent286a00a1db59849d77263d4e5bc7397e1850ca80
filefilter: Cleanups and optimizations

Make mime-type rules hold multiple types. Store the
content types, so we don't have to do mime-type -> content-type
conversion in the match function. Store content types for the
pixbuf-formats rule as well, so we can avoid memory allocation
in the match function altogether.
gtk/gtkfilefilter.c